package com.rocching.easychat.ui;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.rocching.easychat.R;

import io.rong.imkit.conversationlist.ConversationListAdapter;
import io.rong.imkit.conversationlist.ConversationListFragment;

public class MyConversationListFragment extends ConversationListFragment {
    public MyConversationListFragment () {

    }

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return inflater.inflate(R.layout.fragment_conversationlist, null, false);
    }

    @Override
    protected ConversationListAdapter onResolveAdapter() {
        mAdapter = new MyConversationListAdapter();
        mAdapter.setEmptyView(io.rong.imkit.R.layout.rc_conversationlist_empty_view);
        return mAdapter;
    }
}
